package gamelib;

public interface ResourceLoader {
	/**
	 * Loads a resource given its full path.
	 * It is recommended that the resourcePath is valid before calling 'load'.
	 * @param resourcePath
	 * @return the resource loaded into memory.
	 * @throws ResourceLoadException when the given resource couldn't be loaded.
	 */
	Object load (final String resourcePath) throws ResourceLoadException;
}
